package register;

import com.xiguanlezz.cn.client.naming.NacosNamingService;
import org.junit.Test;

import java.util.Properties;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/21 11:19
 * @Description：
 */
public class _4_服务注册逻辑补充 {

    @Test
    public void registerInstance() throws Exception {
        Properties properties = new Properties();
        properties.setProperty("serverAddr", "127.0.0.1:8848");
        NacosNamingService nacosNamingService = new NacosNamingService(properties);
        nacosNamingService.registerInstance("testRegisterInstance", "127.0.0.1", 10086);
    }
}
